

import java.util.*;

public class Sort4 {
    public static void main(String[] args) {
        List words = Arrays.asList("E", "Y", "A", "M", "N", "W", "O","H","S");
        Collections.sort(words);
        System.out.println(words);
    }
}
